#!/usr/bin/env bash

# Set bash to 'debug' mode, it will exit on :
# -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands',
set -e
set -u
set -o pipefail

train_set="train_clean_100"
valid_set="dev_clean"
test_sets="dev_clean"

asr_config=conf/train_streaming_asr_b20h8r4.yaml
inference_config=conf/decode_asr_timesync.yaml

./asr_streaming.sh \
    --lang en \
    --stage 11 \
    --stop_stage 11 \
    --ngpu 4 \
    --nj 16 \
    --gpu_inference false \
    --inference_nj 16 \
    --max_wav_duration 30 \
    --audio_format "flac.ark" \
    --feats_type raw \
    --token_type phone \
    --use_lm false \
    --asr_config "${asr_config}" \
    --inference_config "${inference_config}" \
    --train_set "${train_set}" \
    --valid_set "${valid_set}" \
    --test_sets "${test_sets}" \
    --lm_train_text "data/${train_set}/text" \
    --asr_stats_dir exp/asr_stats_train_clean_100_dev_clean \
    --asr_exp exp/streaming/100_mtpctc_train_b20h8r4 \
